//Source file: D:\\test\\com\\ce\\pms\\charge\\model\\BusinessCodeDomain.java

package com.ce.pms.charge.model;

import javax.persistence.Column;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.ce.pms.common.model.SysInfo;
import com.sitechasia.webx.core.model.IDomainObject;

/**
 * 实体名称:交易码 关联数据表：FEE_BUSINESS_CODE
 */
@Entity
@Table(name = "FEE_BUSINESS_CODE")
public class BusinessCodeDomain implements IDomainObject {

	/**
	 * 关键字
	 */
	@Id
	@GeneratedValue
	@Column(name = "BIZ_CODE_ID")
	private Long keyword;

	/**
	 * 交易码
	 */
	@Column(name = "BIZ_CODE", nullable = false, length = 36)
	private String bizCode;

	/**
	 * 描述
	 */
	@Column(name = "DESCRIPTION", nullable = false, length = 30)
	private String description;

	/**
	 * 借贷类型:001收费;002支付
	 */
	@Column(name = "DEBIT_OR_CREDIT", length = 3)
	private String debitOrCredit;

	/**
	 * 支付方式:001现金;002支票;003刷卡;004预缴款抵冲;005挂帐
	 */
	@Column(name = "PAY_METHOD", length = 3)
	private String payMethod;

	@Embedded
	private SysInfo sysInfo;

	/**
	 * @roseuid 48757D1003D8
	 */
	public BusinessCodeDomain() {

	}

	public BusinessCodeDomain(Long keyword) {
		super();
		this.keyword = keyword;
	}

	/**
	 *
	 * @param bizCode
	 *            交易码
	 * @param description
	 *            描述
	 * @param debitOrCredit
	 *            借贷类型:00收费;002支付
	 * @param sysInfo
	 *            系统信息
	 */
	public BusinessCodeDomain(String bizCode, String description,
			String debitOrCredit, SysInfo sysInfo) {
		super();
		this.bizCode = bizCode;
		this.description = description;
		this.debitOrCredit = debitOrCredit;
		this.sysInfo = sysInfo;
	}

	public String getBizCode() {
		return bizCode;
	}

	public void setBizCode(String bizCode) {
		this.bizCode = bizCode;
	}

	public String getDebitOrCredit() {
		return debitOrCredit;
	}

	public void setDebitOrCredit(String debitOrCredit) {
		this.debitOrCredit = debitOrCredit;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Long getKeyword() {
		return keyword;
	}

	public void setKeyword(Long keyword) {
		this.keyword = keyword;
	}

	public String getPayMethod() {
		return payMethod;
	}

	public void setPayMethod(String payMethod) {
		this.payMethod = payMethod;
	}

	public SysInfo getSysInfo() {
		return sysInfo;
	}

	public void setSysInfo(SysInfo sysInfo) {
		this.sysInfo = sysInfo;
	}

}
